﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using csglxt.model;
using csglxt.BLL;

namespace csglxt
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string pwd = textPwd.Text;
            string name = textUser.Text;
            diaoyong dy=new diaoyong();
            AdminInfo admin = dy.dy(name, pwd);
            if (admin == null)
            {
                MessageBox.Show("登录失败用户名或者密码错误");

            }
            else
            {
                MessageBox.Show("登录成功");
            
            }

            

        }
    }
}
